package Task0;

public class AnimalTest {
    public static void main(String[] args) {
        Dog d =new Dog();
        d.setName("老八");
        d.setAge(6);
        System.out.println(d.getName());
        System.out.println(d.getAge());
        d.getDog();
        System.out.println("--------------------------------------");
        Cat c =new Cat();
        c.setName("老六");
        c.setAge(5);
        System.out.println(c.getName());
        System.out.println(c.getAge());
        c.getCat();
    }
}